package com.smz.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.smz.entity.TProductionLine;
import org.apache.ibatis.annotations.Param;

import java.util.List;


/**
 * @author Kan
 * @Time 2021-11-16-20:16
 */
public interface TProductionLineDAO extends BaseMapper<TProductionLine> {

    List<TProductionLine> selectAllLine();

    Integer updateOperator(@Param("name") String name, @Param("lineId") Integer lineId);

    //删除时更改product_order中line id
    Integer updateLineInOrder(@Param("lineId") Integer lineId);

    //查询所有负责人名单
    List<String> selectAllOperator();

    // 通过id查询单个生产线
    TProductionLine selectProductLineById(Integer id);

}
